package org.nokatag.Connection;

import java.sql.Connection;
import java.sql.DriverManager;

import org.nokatag.system.Concest;

public class DBJdbcConnection implements DBConnectionInterface{

	public Connection getConnection() {
		try{
		Class.forName(Concest.DB_DRIVER);
        return DriverManager.getConnection(Concest.DB_URL,Concest.DB_USER,Concest.DB_PASSWORD);
		}catch(Exception se){}
		return null;
	}

	public void closeConnection(Connection con) {
		try{
		if(null!=con)
			con.close();
		}catch(Exception se){}
		
	}

}
